package com.yxq.mdt.app.modules.socialcontact.model;

import com.yxq.mdt.app.modules.withdraw.bean.WithDrawResultBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @author L
 * @time 2019-12-10
 * @describe 密聊相关API$
 */
public interface LiveAPI {

    /**
     * 视频扣费
     *
     * @param targetUserId 主播用户id
     * @param liveType     1：开始；2：结束;
     * @return
     */
    @POST("/lbs/gsGive/addOrUpdateVideo")
    @FormUrlEncoded
    Observable<String> addOrUpdateVideo(@Field("targetUserId") String targetUserId, @Field("liveType") int liveType, @Field("liveId") String liveId);

    /**
     * 视频扣费
     *
     * @param targetUserId 主播用户id
     * @return
     */
    @POST("/lbs/gsGive/addOrUpdateVideo")
    @FormUrlEncoded
    Observable<String> addOrUpdateVideo(@Field("targetUserId") String targetUserId, @Field("liveId") String liveId);

    /**
     * 语音扣费
     *
     * @param targetUserId 主播用户id
     * @param liveType     1：开始；2：结束;
     * @return
     */
    @POST("/lbs/gsGive/addOrUpdateVoice")
    @FormUrlEncoded
    Observable<String> addOrUpdateVoice(@Field("targetUserId") String targetUserId, @Field("liveType") int liveType, @Field("liveId") String liveId);

    /**
     * 语音扣费
     *
     * @param targetUserId 主播用户id
     * @return
     */
    @POST("/lbs/gsGive/addOrUpdateVoice")
    @FormUrlEncoded
    Observable<String> addOrUpdateVoice(@Field("targetUserId") String targetUserId, @Field("liveId") String liveId);


    /**
     * 评价主播
     *
     * @param liveId  主播用户id
     * @param comment 1，2，3标签拼接
     * @param score   评分
     * @return
     */
    @POST("/lbs/gsGive/updateEvaluate")
    @FormUrlEncoded
    Observable<WithDrawResultBean> updateEvaluate(@Field("liveId") String liveId, @Field("comment") String comment, @Field("score") int score);
}
